﻿using System;

class BinaryAsDecimal
{
    static void Main()
    {
        string binaryNumber = "11110000011110011";
        int decimalNumber=0;

        for (int i = 0; i < binaryNumber.Length; i++)
        {
            int letter = int.Parse(binaryNumber[binaryNumber.Length-1-i].ToString());
            decimalNumber += letter * (int)Math.Pow(2, i);
        }
        Console.WriteLine(decimalNumber);
    }
}
